<div class="input-group" validationTarget>
  <input
    [type]="fieldTextType ? 'text' : 'password'"
    class="form-control"
    [id]="inputId"
    [(ngModel)]="value"
  />

  <button class="btn btn-secondary" type="button" (click)="toggleFieldTextType()">
    <i
      class="fa"
      aria-hidden="true"
      [ngClass]="{
        'fa-eye-slash': !fieldTextType,
        'fa-eye': fieldTextType
      }"
    ></i>
  </button>
</div>
